#include "TagSolution.h"

int main()
{
    int startPosition = 0;
    for (int i = 0; i < 9; ++i)
    {
        int num = 0;
        cin >> num;
        startPosition = (startPosition * 10) + num;
    }
    TagSolution solution(startPosition);
    solution.getSolution();
    return 0;
}
